/*
 * @Descripttion:
 * @version: 1.0
 * @Author: lynn
 * @Date: 2020-10-20 07:21:06
 * @LastEditors: 任静
 * @LastEditTime: 2020-11-03 19:39:31
 */
import Layout from '@/layout'

const smartRouter = [{
  path: '/vip',
  component: Layout,
  name: 'Vip',
  meta: {
    title: 'Vip',
    icon: 'nested'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/vip/index'), // Parent router-view
      name: 'VipManage',
      meta: { title: 'VipManage' }
    }
  ]
},
{
  path: '/goods',
  component: Layout,
  name: 'Goods',
  meta: {
    title: 'Goods',
    icon: 'el-icon-goods'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/goods/index'),
      name: 'GoodsManage',
      meta: { title: 'GoodsManage'}
    },
    {
      path: 'tag',
      component: () => import('@/views/goods/tag'),
      name: 'GoodsTagManage',
      meta: { title: 'GoodsTagManage', noCache: true }
    }
  ]
},
{
  path: '/setting',
  component: Layout,
  redirect: '/setting/index',
  name:'setting',
  meta: {
    title: 'setting',
    icon: 'el-icon-goods'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/setting/index'),
      name: 'PresonalCenter',
      meta: { title: 'PresonalCenter', noCache: true }
    },
    {
      path: 'option',
      component: () => import('@/views/setting/option'),
      name: 'OptionlCenter',
      meta: { title: 'OptionlCenter', noCache: true }
    }
  ]
},
{
  path: '/order',
  component: Layout,
  name: 'Order',
  meta: {
    title: 'Order',
    icon: 'nested'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/order/index'), // Parent router-view
      name: 'OrderManage',
      meta: { title: 'OrderManage' }
    }
  ]
},

{
  path: '/data',
  component: Layout,
  name: 'Data',
  meta: {
    title: 'Data',
    icon: 'nested'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/data/index'), // Parent router-view
      name: 'DataAnalysis',
      meta: { title: 'DataAnalysis' }
    }
  ]
},

{
  path: '/set',
  component: Layout,
  name: 'Set',
  meta: {
    title: 'Set',
    icon: 'nested'
  },
  children: [
    {
      path: '/setpersonal',
      component: () => import('@/views/set/setpersonal'), // Parent router-view
      name: 'SetPersonal',
      meta: { title: 'SetPersonal' }
    },
    {
      path: 'setuser',
      component: () => import('@/views/set/setuser'),
      name: 'SetUser',
      meta: { title: 'SetUser' }
    }
  ]
}

]

export default smartRouter
